Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pinned messages #2011

Merged
merged 88 commits into from
Jun 20, 2024
Merged

Conversation

Silver-IT
Copy link
Member

@Silver-IT Silver-IT commented May 24, 2024

Summary of Changes

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @Silver-IT!

Preliminary review (round 1) done!

In addition to the comments I posted, I found some other issues while testing:

1. Missing "Unpin message" from menu item

As there is a "Pin message" menu item, there should be a corresponding "Unpin message" menu item that appears on pinned messages:

Screenshot 2024-06-12 at 10 14 39 AM

2. Pinned messages don't appear in DMs

The pinned messages menu should appear in DMs as well:

Screenshot 2024-06-12 at 10 17 13 AM

frontend/main.js Outdated Show resolved Hide resolved
frontend/model/contracts/chatroom.js Outdated Show resolved Hide resolved
frontend/views/containers/chatroom/ChatMain.vue Outdated Show resolved Hide resolved
@Silver-IT
Copy link
Member Author

Silver-IT commented Jun 13, 2024

As there is a "Pin message" menu item, there should be a corresponding "Unpin message" menu item that appears on pinned messages:

I can't find the unpin icon in FontAwesome. Can I use the same icon(thumbtack) for unpin button?
image

Or this undo icon?
image

PS: I can see that Discord has same icon (thumbtack) for both Pin and Unpin button.

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvements, this PR is shaping up 👍

I noticed this PR modifies the code for voting on polls and noticed that it introduces some bugs:

Screenshot 2024-06-17 at 11 36 32 AM

For example, above u1 tries to vote on a poll u2 created, and even though they clicked "Submit" the poll doesn't switch to the show the results, and instead remains on the choice screen. That's why in the chat it shows u1 voting multiple times because they just click "Submit" again and again...

Please test all modified code thoroughly, and especially code for which we do not have tests yet.

frontend/model/contracts/chatroom.js Show resolved Hide resolved
Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Seems to be almost ready to merge. I found one more bug:

frontend/views/containers/chatroom/PinnedMessages.vue Outdated Show resolved Hide resolved
Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change requests and questions

frontend/views/pages/DesignSystem.vue Outdated Show resolved Hide resolved
frontend/views/containers/chatroom/MessageActions.vue Outdated Show resolved Hide resolved
Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! Amazing work @Silver-IT !!

@taoeffect taoeffect merged commit eda1beb into master Jun 20, 2024
4 checks passed
@taoeffect taoeffect deleted the 1963-design-for-pinned-messages-in-chat branch June 20, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Design for Pinned Messages in Chat
2 participants